
@extends('admin.base')
@section('content')

    <div class="container" >
        <button class="layui-btn" data-id="1">9快9包邮</button>
        <button class="layui-btn" data-id="2">网红爆款</button>
        <button class="layui-btn" data-id="3">白菜价</button>
        <button class="layui-btn" data-id="4">每日神券</button>
    </div>


@endsection
@section('script')
    <script type="text/javascript">
        $('button').click(function () {
            window.parent.$('#hit_content').val($(this).attr('data-id'));
            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
            parent.layer.close(index); //再执行关闭
        })
    </script>
@endsection